package tech.aistar.corejava.day12.homework02;

/**
 * Created by Administrator on 2019/7/31.
 */
public class TransRecord {
    private Integer uid;
    private String name;
    private Integer id;
    private Integer sex;
    private String account;
    private String time;
    private double price;

    public TransRecord() {
    }

    public TransRecord(Integer uid, String name, Integer id, Integer sex, String account, String time, double price) {
        this.uid = uid;
        this.name = name;
        this.id = id;
        this.sex = sex;
        this.account = account;
        this.time = time;
        this.price = price;
    }

    public Integer getUid() {
        return uid;
    }

    public void setUid(Integer uid) {
        this.uid = uid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getSex() {
        return sex;
    }

    public void setSex(Integer sex) {
        this.sex = sex;
    }

    public String getAccount() {
        return account;
    }

    public void setAccount(String account) {
        this.account = account;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("TransRecord{");
        sb.append("Uid=").append(uid);
        sb.append(", name='").append(name).append('\'');
        sb.append(", id=").append(id);
        sb.append(", sex=").append(sex);
        sb.append(", account='").append(account).append('\'');
        sb.append(", time='").append(time).append('\'');
        sb.append(", price=").append(price);
        sb.append('}');
        return sb.toString();
    }
}
